//
//  WCGroup.h
//  WabbitCode
//
//  Created by William Towe on 1/28/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "WCFile.h"


extern NSString *kWCGroupUnableToInsertAbsoluteFilePathKey;
extern NSString *kWCGroupUnableToInsertReasonKey;

@class WCProject;

@interface WCGroup : WCFile {

}

+ (id)groupWithFilePath:(NSString *)filePath inProject:(WCProject *)project;
+ (id)groupWithFilePath:(NSString *)filePath name:(NSString *)name inProject:(WCProject *)project;

// for adding file paths at a specific index with a specified encoding, flag indicates whether to copy the files into the project folder if possible
- (NSArray *)insertFilePaths:(NSArray *)filePaths atIndex:(NSUInteger)index copyFiles:(BOOL)flag usingEncoding:(NSStringEncoding)encoding;

// for adding files when creating a new project
- (void)recursivelyAddFilePathsFromFolderPath:(NSString *)folderPath;
- (void)recursivelyAddFilePathsFromFolderPath:(NSString *)folderPath usingEncoding:(NSStringEncoding)encoding;
@end
